package com.xmx.entity;

import java.util.ArrayList;
import java.util.List;

/**
 * overview：
 * author:
 * 2023年05月04日 12:39:
 */

public class CrmUsers {
    private Integer userid;//编号，主键自增
    private String username;//用户名
    private String userpwd;//密码
    private String realname;//真实名字

    private List<Roles> roles = new ArrayList<>();

    @Override
    public String toString() {
        return "CrmUsers{" +
                "userid=" + userid +
                ", username='" + username + '\'' +
                ", userpwd='" + userpwd + '\'' +
                ", realname='" + realname + '\'' +
                ", roles=" + roles +
                '}';
    }

    public CrmUsers(Integer userid, String username, String userpwd, String realname) {
        this.userid = userid;
        this.username = username;
        this.userpwd = userpwd;
        this.realname = realname;
    }

    public CrmUsers() {
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public List<Roles> getRoles() {
        return roles;
    }

    public void setRoles(List<Roles> roles) {
        this.roles = roles;
    }
}
